<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddNewOrderCodeToSoftTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_space_design_soft_outfit_mapping', function (Blueprint $table) {
            $table->string('newOrderCode', 30)->comment('订货new_order表code')->index('idx_new_order_code');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_space_design_soft_outfit_mapping', function (Blueprint $table) {
            $table->dropColumn('newOrderCode');
        });
    }
}
